package org.alexl.webhook.service;

import org.alexl.webhook.domain.PushObject;
import org.alexl.webhook.exception.BadPasswordException;
import java.io.IOException;

/**
 * WebHook接口抽象
 * 
 * @author Alexander
 */
public interface IWebHookService {
    /**
     * 执行Webhook命令
     * 
     * @param obj
     * @return 成功与否 
     * @throws org.alexl.webhook.exception.BadPasswordException 
     * @throws java.io.IOException 
     * @throws java.lang.InterruptedException 
     */
    boolean execute(PushObject obj) throws BadPasswordException, IOException, InterruptedException;
}
